<template>
  <div class="mainBox">
      <AdminTheHeader></AdminTheHeader>
      <el-main>
        <router-view />
      </el-main>
  </div>
</template>

<script>
  import AdminTheHeader from './AdminTheHeader.vue';
  export default {
    components:{
      AdminTheHeader,
    },
    name: "AdminTable",
    data() {
      return {
        isCollapse: true,
        //用户名
        username: "",
      };
    },
    methods: {
      handleCommand(command) {
        const _this = this;
        if (command == "logout") {}
        if (command == "mainTable") {
          _this.$router.replace("/mainTable");
        }
      },
    },
    created() {
      const _this = this;
      var username = _this.$getCookie("username");
      _this.username = username;
      _this.$router.push("/AccountManager");
    },
  };
</script>

<style lang="css" scoped>
  @import '../assets/css/admintable.css';
</style>
